package com.lab;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

public class test {
	ReadData sity = new ReadData();
	Sity sity1 = new Sity();
	public String name = null;
	public int x = 0;
	public int y = 0;
	public String res = null;

	@Before
	public void setUpS() {
		name = "﻿Вінниця";
		x = 340;
		y = 262;
		}

	@Test
	public void testS() {
		sity.readData("міста1.txt");
		res=sity.getListOfSities().get(0).getNameofSity();
		sity1=sity.getListOfSities().get(0);
		System.out.println(res);
		//Assert.assertEquals(name,res);
		System.out.println(sity1.getCordXofSity());
		Assert.assertEquals(340,sity1.getCordXofSity());
		Assert.assertEquals(262,sity1.getCordYofSity());
	}
}

